package com.example.administrator.stargo.activity;

import android.content.Intent;
import android.view.View;
import android.widget.TextView;

import com.example.administrator.stargo.BaseActivity;
import com.example.administrator.stargo.R;
import com.example.administrator.stargo.api.HttpCallBack;
import com.example.administrator.stargo.view.StatusBarUtil;

import butterknife.BindView;
import butterknife.OnClick;

public class Main2Activity extends BaseActivity implements HttpCallBack{

    @BindView(R.id.tv_home)
    TextView tv_home;

    @Override
    protected int getLayoutId() {
        setSlideable(true);
        StatusBarUtil.setColor(Main2Activity.this,getResources().getColor(R.color.colorAccent));
        return R.layout.activity_main2;
    }

    @OnClick({R.id.tv_home})
    public void onClick(View view){
        switch (view.getId()){
            case R.id.tv_home:
                Intent intent = new Intent(Main2Activity.this,Main3Activity.class);
                startActivity(intent);
                break;
        }
    }
    @Override
    public void onSuccess(int action, String res) {

    }

    @Override
    public void showLoadingDialog() {

    }

    @Override
    public void showErrorMessage(String s) {

    }
}
